package com.sl.discovery.core.config;

import com.sl.discovery.api.SquareLakeDiscoveryClient;
import com.sl.discovery.modular.DiscoveryClientWrapper;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

@Configuration
@LoadBalancerClient(name = "project", configuration = CustomLoadBalancerConfiguration.class)
public class LoadbalanceConfiguration {

    @Bean
    public SquareLakeDiscoveryClient discoveryClientWrapper() {
        return new DiscoveryClientWrapper();
    }
}
